<?php

declare(strict_types=1);

/**
 * @Author:     Frank
 * @contact     frank_hhm@163.com
 * @Date:       2022-11-15 16:28:03
 * @Last Modified time: 2022-11-15 16:28:33
 */

namespace app\common\enum\system\config;

use frank\base\BaseEnum;

/**
 * 枚举类
 * Class InputTypeEnum
 * @package app\common\enum\system\config
 */
class InputTypeEnum extends BaseEnum
{
    const INPUT = 'input';

    const NUMBER = 'number';

    const DATETIME = 'datetime';

    const COLOR = 'color';


    /**
     * 获取枚举数据
     * @return array
     */
    public static function data()
    {
        return [
            self::INPUT => [
                'name' => '文本框',
                'value' => self::INPUT,
            ],
            self::NUMBER => [
                'name' => '数字',
                'value' => self::NUMBER,
            ],
            self::DATETIME => [
                'name' => '时间',
                'value' => self::DATETIME,
            ],
            self::COLOR => [
                'name' => '颜色',
                'value' => self::COLOR,
            ],
        ];
    }
}
